package com.my.study.entity;

import java.util.HashMap;
import java.util.List;
import java.util.Objects;

/**
 * @author: yidujun
 * @create: 2022/04/08 14:27
 */
public class MyProduct {

    private String productName;

    private Integer count;

    private HashMap<Integer, List<String>> myMap;

    public MyProduct() {
    }

    public MyProduct(String productName, Integer count) {
        this.productName = productName;
        this.count = count;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

//    @Override
//    public boolean equals(Object o) {
//        if (this == o) {
//            return true;
//        }
//        if (o == null || getClass() != o.getClass()) {
//            return false;
//        }
//        MyProduct myProduct = (MyProduct) o;
//        return Objects.equals(productName, myProduct.productName) &&
//                Objects.equals(count, myProduct.count) &&
//                Objects.equals(myMap, myProduct.myMap);
//    }
//
//    @Override
//    public int hashCode() {
//        return Objects.hash(productName, count, myMap);
//    }
    
    public String convertStr(MyProduct myProduct) {
        return myProduct.toString();
    }
}
